package org.leslie.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "email")
public class EmailProperties {
//    @Value("${email.user}")
    public String user;

//    @Value("${email.code}")
    public String code;

//    @Value("${email.host}")
    public String host;

//    @Value("${email.auth}")
    private boolean auth;
}
